function getcwZZFPDAccount(){

    $('#zzfpd_addItemDatagrid').datagrid('loadData',{total:0,rows:[]});

    var JIAFANG = $("#zzfpd_addWinForm input[qucln='MAN_PAY']").val();


    $.ajax({
        type:'post',
        url:_m_url + 'fxa/getcontractnobyfkdxid',
        data:{
            'VENDOR_ID': JIAFANG
        },
        success:function(data){
            for ( var j = 0; j < data.length; j++) {
                $('#zzfpd_addItemDatagrid').datagrid('appendRow', {
                    VERIFY_DATE:data[j].VERIFY_DATE,
                    DJ_CODE:data[j].DJ_CODE,
                    TOPIC_SELECTED:data[j].TOPIC_SELECTED,
                    BASIS_ACCOUNT:data[j].BASIS_ACCOUNT,
                    ROYALTY_SALE:data[j].ROYALTY_SALE,
                    NUMBER_DELIVERY:data[j].NUMBER_DELIVERY,
                    NUMBER_SALE:data[j].NUMBER_SALE,
                    NUMBER_TOTAL_PRINT:data[j].NUMBER_TOTAL_PRINT,
                    PARAMETER_ROYALTY:data[j].PARAMETER_ROYALTY,
                    PRICE:data[j].PRICE,
                    PAY_SHOULD:data[j].PAY_SHOULD,
                    MEMO:data[j].MEMO
                });
            }

        }
    })

}




/**
 * 纸厂对账单的删除明细的按钮
 */
function deleteDZCL(obj,dgUrl,queryParams){
    // 获取选中的行
    var oldRows = $('#sgfyfd_addItemDatagrid').datagrid('getSelections');
    for(var i=0;i<oldRows.length;i++){
        var rowIndex= $('#sgfyfd_addItemDatagrid').datagrid('getRowIndex',oldRows[i]);
        $('#sgfyfd_addItemDatagrid').datagrid('deleteRow',rowIndex);
    }
}